const webpack = require("webpack");

module.exports = {
    configureWebpack: {
        plugins: [
            new webpack.ProvidePlugin({
                $: "jquery",
                jQuery: "jquery",
                "window.jQuery": "jquery",
                "window.$": "jquery",
                Popper: ["popper.js", "default"]
            })
        ]
    },
    devServer: {
        proxy: {
            '/ajax': {
                target: 'https://m.maoyan.com/',
                changeOrigin: true
            },
             '/user': {
                target: 'http://127.0.0.1:8000/',
                changeOrigin: true
            },

        }
    }
};